﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="03_SqlCommand.aspx.cs"
    Inherits="WebApplication1._03_SqlCommand" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div style="text-align: center">
        <h1 style="text-align: center">
            使用SqlCommand对象
        </h1>
        <br />
        <asp:Button ID="btnCommand" runat="server" Text="绑定数据到GridView" OnClick="btnCommand_Click" />
        <br />
        <br />
        <asp:Label ID="lblObj" runat="server" Text=""></asp:Label>
        <br />
        <br />
        <asp:Label ID="lblCount" runat="server" Text=""></asp:Label>
        <br />
        <br />
        <asp:GridView runat="server" ID="GridView1">
        </asp:GridView>
    </div>
    <div style="text-align: center">
        <asp:Label ID="lbal1" runat="server" Text="输入CategoryID(仅限于整数)"></asp:Label>
        <asp:TextBox ID="txtCategoryID" runat="server" Width="200px"></asp:TextBox>
        <asp:Button Text="删除指定CategoryID的行的数据" runat="server" ID="btnDelete" OnClick="btnDelete_Click" />
    </div>
    </form>
</body>
</html>
